// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import com.fowo.api.common.mybatis.handlers.SysFileListTypeHandler;
import com.fowo.api.sys.entity.SysFile;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * SalesWithdrawProduct
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "sales_withdraw_product", autoResultMap = true)
@Schema(title = "销售退货单子表")
public class SalesWithdrawProduct implements Serializable {

  /**
   * 平台单号
   */
  @TableField(value = "`platform_order_no`")
  @Schema(title = "平台单号")
  private String platformOrderNo;

  /**
   * 图片
   */
  @TableField(value = "`img_url`", typeHandler = SysFileListTypeHandler.class)
  @Schema(title = "图片")
  private List<SysFile> imgUrl;

  /**
   * 商品信息
   */
  @TableField(value = "`product_info`")
  @Schema(title = "商品信息")
  private String productInfo;

  /**
   * 品名
   */
  @TableField(value = "`product_name`")
  @JoinField(Product.class)
  @Schema(title = "品名")
  private Long productName;

  /**
   * SKU
   */
  @TableField(value = "`sku`")
  @Schema(title = "SKU")
  private String sku;

  /**
   * 订购时间
   */
  @TableField(value = "`order_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "订购时间")
  private java.util.Date orderTime;

  /**
   * 退货数量
   */
  @TableField(value = "`return_quantity`")
  @Schema(title = "退货数量")
  private Integer returnQuantity;

  /**
   * 收货量
   */
  @TableField(value = "`receiving_quantity`")
  @Schema(title = "收货量")
  private Integer receivingQuantity;

  /**
   * 售后图片
   */
  @TableField(value = "`sales_img`")
  @Schema(title = "售后图片")
  private String salesImg;

  /**
   * 处理方式
   */
  @TableField(value = "`handler_type`")
  @Schema(title = "处理方式")
  private String handlerType;

  /**
   * 售后说明
   */
  @TableField(value = "`remark`")
  @Schema(title = "售后说明")
  private String remark;

  /**
   * 数量
   */
  @TableField(value = "`quantity`")
  @Schema(title = "数量")
  private Integer quantity;

  /**
   * 销毁量
   */
  @TableField(value = "`destroyed_quantity`")
  @Schema(title = "销毁量")
  private Integer destroyedQuantity;

  /**
   * 次品量
   */
  @TableField(value = "`defective_quantity`")
  @Schema(title = "次品量")
  private Integer defectiveQuantity;

  /**
   * 可用量
   */
  @TableField(value = "`available_quantity`")
  @Schema(title = "可用量")
  private Integer availableQuantity;

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 所属销售退货单
   */
  @TableField(value = "`parent_sales_withdraw`")
  @JoinField(SalesWithdraw.class)
  @Schema(title = "所属销售退货单")
  private Long parentSalesWithdraw;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 产品id
   */
  @TableField(value = "`pid`")
  @Schema(title = "产品id")
  private Long pid;

  /**
   * 单位出库成本
   */
  @TableField(value = "`outbound_cost`")
  @Schema(title = "单位出库成本")
  private java.math.BigDecimal outboundCost;

  /**
   * 可用仓位
   */
  @TableField(value = "`available_wbin`")
  @Schema(title = "可用仓位")
  private String availableWbin;

  /**
   * 次品仓位
   */
  @TableField(value = "`defective_wbin`")
  @Schema(title = "次品仓位")
  private String defectiveWbin;
}
